import turtle

def n_sided_regular_polygon(t, n, l):
    angle = 360 / n
    for _ in range(n):
        t.forward(l)
        t.right(angle) 


sides = int(input("How many sides would you like? "))

n_sided_regular_polygon(turtle.Turtle(), sides, 50)
